//
//  HCHotStoreTableViewCell.m
//  HappyChildren
//
//  Created by WillyZhao on 2017/2/8.
//  Copyright © 2017年 WillyZhao. All rights reserved.
//

#import "HCHotStoreTableViewCell.h"

#import "HCFindHotStoreModel.h"

@interface HCHotStoreTableViewCell () {
    HCFindHotStoreData *data;
}

@end

@implementation HCHotStoreTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
    self.middleBG.layer.cornerRadius = 5.0f;
    
    self.countLabel.textColor = YBKRGBCOLOR(240, 96, 96, 1);
    self.scoreLabel.textColor = self.countLabel.textColor;
    self.topBGGGG.alpha = 0.4;
    // Initialization code
}

-(void)setModel:(id)model {
    data = (HCFindHotStoreData *)model;
    
    self.scoreLabel.text = [NSString stringWithFormat:@"%@",data.star];
    self.name.text = [NSString stringWithFormat:@"%@",data.name];
    [self.topIMG sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",data.logo]]];
    self.tags_cell.model = data.tag;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
